import { DefaultTheme } from "vitepress";

const basicKnowledge: DefaultTheme.SidebarItem[] = [{
  text: 'CSS',
  items: [{
    text: '布局', link: '/basic-knowledge/css',
  }]
}, {
  text: 'JS',
  items: [{
    text: 'JS', link: '/basic-knowledge/js/',
  }, {
    text: 'Promise', link: '/basic-knowledge/js/promise',
  }, {
    text: '节流&防抖', link: '/basic-knowledge/js/debounce-throttle',
  }, {
    text: '手写new', link: '/basic-knowledge/js/new-custom',
  }]
}, {
  text: 'ES6',
  items: [{
    text: 'ES6', link: '/basic-knowledge/es6',
  }]
}, {
  text: 'Vue',
  items: [{
    text: 'vue2', link: '/basic-knowledge/vue2',
  }]
}, {
  text: 'Webpack',
  items: [{
    text: 'Webpack', link: '/basic-knowledge/webpack/',
  }, {
    text: '配置', link: '/basic-knowledge/webpack/configuration',
  }]
}, {
  text: 'Node.js',
  items: [{
    text: '常见场景', link: '/basic-knowledge/nodejs',
  }]
}, {
  text: '计算机网络',
  items: [{
    text: 'http', link: '/basic-knowledge/network/',
  }, {
    text: 'websoket', link: '/basic-knowledge/network/websoket',
  }]
}, {
  text: '其他',
  items: [{
    text: 'SEO', link: '/basic-knowledge/other',
  }]
}]

export default basicKnowledge;
